<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>BAO HO SO DEP</title>
        <!-- Bootstrap -->
        <link href="<?php echo INDEX ?>/templates/default/css/bootstrap.min.css" rel="stylesheet">
        <link rel="stylesheet" type="text/css" href="<?php echo INDEX ?>/templates/default/css/default.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo INDEX ?>/templates/default/css/component.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo INDEX ?>/templates/default/css/style_item_news.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo INDEX ?>/templates/default/css/component_chitiet.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo INDEX ?>/templates/default/css/jquery-ui.css" />
        <link rel="stylesheet" type="text/css" href="<?php echo INDEX ?>/templates/default/css/dhtmlxcalendar.css" />

        <script src="<?php echo INDEX ?>/templates/default/js/modernizr.custom.js"></script>
        <script src="<?php echo INDEX ?>/templates/default/js/jquery-1.8.3.js"></script>
        <script src="<?php echo INDEX ?>/templates/default/js/masonry.pkgd.min.js"></script>
        <script src="<?php echo INDEX ?>/templates/default/js/imagesloaded.js"></script>
        <script src="<?php echo INDEX ?>/templates/default/js/classie.js"></script>
        <script src="<?php echo INDEX ?>/templates/default/js/AnimOnScroll.js"></script>
        <script src="<?php echo INDEX ?>/templates/default/js/caption-images.js"></script>
        <script src="<?php echo INDEX ?>/templates/default/js/jquery.js"></script>
        <script src="<?php echo INDEX ?>/templates/default/js/bootstrap.min.js"></script>
        <script src="<?php echo INDEX ?>/templates/default/js/bootstrap-modal.js"></script>
        <script src="<?php echo INDEX ?>/templates/default/js/jquery-ui.js"></script>
        <script src="<?php echo INDEX ?>/templates/default/js/dhtmlxcalendar.js"></script>

        <script type="text/javascript"> $(document).ready(function() {
                $('.dropdown-toggle').dropdown();
            });</script>
        <script type="text/javascript">
            var container = document.querySelector('.dstin');
            var msnry = new Masonry(container, {
                columnWidth: 200,
                itemSelector: '.dstin-item'
            });
        </script>
    <div id="fb-root"></div>
    <script>(function(d, s, id) {
            var js, fjs = d.getElementsByTagName(s)[0];
            if (d.getElementById(id))
                return;
            js = d.createElement(s);
            js.id = id;
            js.src = "//connect.facebook.net/vi_VN/sdk.js#xfbml=1&appId=688936331184273&version=v2.0";
            fjs.parentNode.insertBefore(js, fjs);
        }(document, 'script', 'facebook-jssdk'));
    </script>
    <script>
//        $('#textarea').keypress(function(event) {
//            if (event.which == 13) {
//                event.preventDefault();
//                var s = $(this).val();
//                $(this).val(s + "<br>\n");
//            }
//        });
    </script>
</head>
<body onload="doOnLoad();">
    <div class="navbar navbar-inverse" role="navigation">
        <div class="container-fluid">
            <div class="navbar-header">                    
                <a class="navbar-brand" href="index.php?com=com_home">PHƯỚC NGUYỄN</a>
            </div>
            <div class="navbar-collapse collapse">
                <ul class="nav navbar-nav">
                    <li class="active"><a href="index.php?com=com_home">TRANG CHỦ</a></li>
                    <li><a href="index.php?com=com_dathang">ĐẶT HÀNG</a></li>
                    <li><a href="#">ĐĂNG KÝ</a></li>                                        
                </ul> 
                <ul class="nav navbar-nav navbar-right">
                    <li><?php
                        if (isset($_SESSION['username'])) {
                            echo "<a href=''>" . $_SESSION['username'] . "</a>";
                        } else {
                            echo "<a href='index.php?com=com_login'>Đăng Nhập</a>";
                        }
                        ?></li>  
                    <li><?php
                        if (isset($_SESSION['username'])) {
                            echo "<a href='index.php?com=com_logout'>Thoát</a>";
                        } else {
                            
                        }
                        ?></li>
                </ul>
            </div><!--/.nav-collapse -->
        </div><!--/.container-fluid -->
    </div>

    <div class="container">
        <?php include_once COMPONENT . DS . 'com_router' . DS . 'index.php' ?>

    </div>




    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->

    <script>
        new AnimOnScroll(document.getElementById('grid'), {
            minDuration: 0.4,
            maxDuration: 0.7,
            viewportFactor: 0.2
        });
    </script>
    <script>
        new AnimOnScroll(document.getElementById('grid_chitiet'), {
            minDuration: 0.4,
            maxDuration: 0.7,
            viewportFactor: 0.2
        });
    </script>        
</body>
</html>